package com.xrjsj.stage.constant;

public class CommonEnum {

    public enum DeleteFlagContext{

        DELETE_NO(0,"未删除"),
        DELETE_YES(1,"已删除")
        ;


        private Integer code;

        private String name;

        DeleteFlagContext(Integer code, String name) {
            this.code = code;
            this.name = name;
        }

        public Integer getCode() {
            return code;
        }

        public String getName() {
            return name;
        }
    }

    public enum ResultInfo{

        UNKOWN_ERROT(500,"服务器错误"),
        SUCCESS(200,"操作成功"),
        AUTH_ERROR(501,"权限验证错误")
        ;

        private Integer code;
        private String msg;

        private ResultInfo(Integer code, String msg) {
            this.code = code;
            this.msg = msg;
        }
        public Integer getCode() {
            return code;
        }
        public String getMsg() {
            return msg;
        }
    }


}
